#ifndef TRACKBALL_H
#define TRACKBALL_H

#include "Vector.h"

class Trackball
{
    public:
        Trackball();

        void applyRotation();
        void setRotation(const double & angle, const Vector & v);
        void startTrackball(const double & x, const double & y);
        void trackballMovement(const double & x, const double & y); 
        void indentityMatrix();
    private:
        void setCurrCoord(const Vector & v);
        double calcZCoordinate(const double & x, const double & y);
        Vector currentCoordinate;
        float rotationMatrix[16];
};

#endif // TRACKBALL_H
